package demo1;

import NodeList.Node;
import NodeList.NodeList;
import bidNodeList.BidNode;
import bidNodeList.BidNodeList;

/**
 * @Author liangzai
 * @Description:
 */
public class Test {
    public static void main(String[] args) {
        BidNodeList list = new BidNodeList();
        list.addLast(1);
        list.addLast(1);
        list.addLast(1);
        list.addLast(1);
        list.addLast(5);
        list.display();

        list.addIndex(list.size()-1,1);
        list.display();
        list.removeAllKey(1);
        list.display();
    }

    public static void main1(String[] args) {
        NodeList list = new NodeList();
        list.addLast(1);
        list.addLast(2);
        list.addLast(1);
        list.addLast(4);
        list.addLast(5);
        list.display();

        list.addIndex(list.size()-1,1);
        list.display();
        list.removeAllKey(1);
        list.display();

    }
}
